package com.cuotigou.mapper;

import com.cuotigou.pojo.SUserToWrongTopic;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public interface SUserToWrongTopicMapper {
    int insert(SUserToWrongTopic record);

    int insertSelective(SUserToWrongTopic record);

    SUserToWrongTopic select(SUserToWrongTopic record);

    void update(SUserToWrongTopic record);

    Integer selctCount(Long userId);

    void delete(SUserToWrongTopic record);
    //全部错题消灭情况
    List<SUserToWrongTopic> selectSatusCountByMap(Map<String,Object> map);
    //单科错题消灭情况
    List<SUserToWrongTopic> selectSatusCountByMap2(Map<String,Object> map);
    //用户每月录题情况
    List<SUserToWrongTopic> selectMonthCountByUserId(Map<String,Object> map);
    //题型未掌握情况
    LinkedList<SUserToWrongTopic> selectQuestionNotMasterByUserId(Map<String,Object> map);
    //科目未掌握情况
    List<SUserToWrongTopic> selectSubjectNotMasterByUserId(String userId);
    //错题原因
    List<SUserToWrongTopic> selectReasonByUserId(Map<String,Object> map);


}